import Modal from '../utils/class/Modal';
import { ModalProps } from 'naive-ui';

function useModal(attrs?: ModalProps): Modal {
  return new Modal(Object.assign(attrs || {}));
}

export default useModal;
